.class Lcom/estrongs/android/taskmanager/gp;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# instance fields
.field final synthetic a:Lcom/estrongs/android/taskmanager/TaskManager;


# direct methods
.method constructor <init>(Lcom/estrongs/android/taskmanager/TaskManager;)V
    .locals 0

    iput-object p1, p0, Lcom/estrongs/android/taskmanager/gp;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 7

    invoke-virtual {p1}, Landroid/widget/AdapterView;->getAdapter()Landroid/widget/Adapter;

    move-result-object v2

    check-cast v2, Landroid/widget/BaseAdapter;

    invoke-virtual {v2, p3}, Landroid/widget/BaseAdapter;->getItem(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/android/taskmanager/b/c;

    sget-boolean v1, Lcom/estrongs/android/taskmanager/TaskManager;->b:Z

    if-eqz v1, :cond_0

    new-instance v1, Landroid/app/AlertDialog$Builder;

    iget-object v3, p0, Lcom/estrongs/android/taskmanager/gp;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-direct {v1, v3}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const v3, 0x108009b

    invoke-virtual {v1, v3}, Landroid/app/AlertDialog$Builder;->setIcon(I)Landroid/app/AlertDialog$Builder;

    move-result-object v1

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "Debug - "

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Lcom/estrongs/android/taskmanager/b/c;->i()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v3}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v1

    invoke-virtual {v0}, Lcom/estrongs/android/taskmanager/b/c;->f()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v3}, Landroid/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v1

    const v3, 0x7f070054

    const/4 v4, 0x0

    invoke-virtual {v1, v3, v4}, Landroid/app/AlertDialog$Builder;->setNegativeButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v1

    invoke-virtual {v1}, Landroid/app/AlertDialog$Builder;->show()Landroid/app/AlertDialog;

    :cond_0
    iget-object v1, p0, Lcom/estrongs/android/taskmanager/gp;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v1, v0}, Lcom/estrongs/android/taskmanager/TaskManager;->a(Lcom/estrongs/android/taskmanager/TaskManager;Lcom/estrongs/android/taskmanager/b/c;)Z

    move-result v5

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/gp;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/TaskManager;->a(Lcom/estrongs/android/taskmanager/TaskManager;)Landroid/os/Handler;

    move-result-object v6

    new-instance v0, Lcom/estrongs/android/taskmanager/gq;

    move-object v1, p0

    move-object v3, p2

    move v4, p3

    invoke-direct/range {v0 .. v5}, Lcom/estrongs/android/taskmanager/gq;-><init>(Lcom/estrongs/android/taskmanager/gp;Landroid/widget/BaseAdapter;Landroid/view/View;IZ)V

    invoke-virtual {v6, v0}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    return-void
.end method
